<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>健康打卡系统</title>
    <link rel="stylesheet" type="text/css" href="/css/login.css">
</head>
<body>
<div>
    <h1 align="center">疫情每日打卡,坚持就是胜利！</h1>
</div>
<div class="content">
    <div class="logCon">
        <p th:text="${userError}"></p>
        <p th:text="${passwordError}"></p>
        <p th:text="${NotAdmin}"></p>
        <form id="form1" modelattribute="person" action="/admin/login" method="post">
            <div class="line"><span>账号:</span>
                <input class="bt_input" type="text" name="personId" th:value="${personId}" required="">
            </div>
            <div class="line"><span>密码:</span>
                <input class="bt_input" type="password" name="password" th:value="${password}" required="">
            </div>
            <!--
            <button id="TencentCaptcha" type="button" class="logingBut" onclick="subForm()">验证并登录</button>
            -->
            <input id="ticket" name="ticket" type="hidden" value="">
            <input id="randStr" name="randStr" type="hidden" value="">
            <button class="logingBut"
                    id="TencentCaptcha"
                    data-appid="1306253469"
                    data-cbfn="callback"
                    type="button"
                    onclick='submitFormWithCaptcha()'
            >验证并登录</button>
        </form>
        <form action="/userPage/index" method="post">
            <button type="submit" class="logingBut">返回</button>
        </form>
    </div>
</div>
<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
<script language="JavaScript" src="/js/captcha.js"></script>
</body>
</html>